package IO流.对象流.ObjectOutputStream.Test01;

import java.io.Serializable;

public class Dio implements Serializable {
    private int year;
    private String name;
    int no;
    private static final long serialVersionUID = 5634352631534564L;

    public Dio() {
    }

    public Dio(int year, String name) {
        this.year = year;
        this.name = name;
    }

    public int getYear() {
        return year;
    }

    public void setYear(int year) {
        this.year = year;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Dio{" +
                "year=" + year +
                ", name='" + name + '\'' +
                '}';
    }
}
